// 定义对象类型
type IPerson = {
  // 属性?: 可选的属性
  name?: string;
  // readonly: 只读的属性
  readonly age: number;
};

interface IKun {
  name?: string;
  readonly slogan: string;
}

const p1: IPerson = {
  name: "why",
  age: 18,
};

// p1.age = 30
